<tagLib name="html" />
<include file="Public:header" />
<script charset="utf-8" src="/Public/mydata/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="/Public/source/jquery.js"></script>
<script charset="utf-8" src="/Public/ueditor/editor_config2.js"></script>
<script charset="utf-8" src="/Public/ueditor/editor.min.js"></script>
<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
    <div style="float:left;"><a href="{YICMS::U('Index/stat')}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;修改商品</div>
</div>
<form action="{YICMS::U('Newslist/shop_update')}" method="post" enctype="multipart/form-data">
	<input type="hidden" name="sid" value="{YICMS:$shop.sid}"/>
    <table>
		<tr>
			<td>名称：</td>
			<td>
				<input type="text" name="name" style="height:25px;width:250px;margin-bottom:5px;" value="{YICMS:$shop.name}" />
			</td>
		</tr>
		<tr>
			<td>起拍价：</td>
			<td>
				<input type="text" name="s_price" style="height:25px;width:150px;margin-bottom:5px;" value="{YICMS:$shop.s_price}" /> {YICMS::C('diy_field_name')}
			</td>
		</tr>
		<tr>
			<td>步长：</td>
			<td>
				<input type="text" name="step" style="height:25px;width:150px;margin-bottom:5px;" value="{YICMS:$shop.step}" /> {YICMS::C('diy_field_name')} &nbsp; &nbsp; <tt>最低加价</tt>
			</td>
		</tr>
		<tr>
			<td>结束日期：</td>
			<td>
				<input class="Wdate" type="text" onClick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" name="endtime" value="{YICMS:$shop.endtime|date='Y-m-d H:i:s',###}" />
			</td>
		</tr>
		<tr>
			<td>描述：</td>
			<td>
				<textarea name="des" id="myEditor">{YICMS:$shop.des}</textarea>
				<script type="text/javascript">
					var editor = new UE.ui.Editor();
					editor.render("myEditor");
					//1.2.4以后可以使用一下代码实例化编辑器
				   //UE.getEditor('myEditor')
				</script>
			</td>
		</tr>

	</table>
	<table id="showPic">		
		<tr>
			<td>图片：</td>
			<td>
				<if condition="!empty($shop['pic'])">
					<img src="/Public/news/s_{YICMS:$shop.pic}" style="width:100px;"/> 可不更改图片.<br/>
				</if>
				<input type="file" id="pic" name="pic" style="height:25px;width:200px;margin:5px 0;"/> 请注意图片大小,最大2MB..
			</td>
		</tr>
	</table>	

	<br/>
    <center><input type="submit" class="button" value="修 改"></center><br>
</form>
<br>
<include file="Public:footer" />